<div class="categories">
	<div class="title font16">
		<font style="font-size:16px;color: blank;font-weight: bold;">Categories</font>
	</div>
	{foreach item=oCats from=$oCatTree}
		<div class="category font13 fontWeight">
			{$oCats->getName()}				
		</div>
		{foreach item=oCat from=$oCats->getSubCategories()}
			{if $oCat->getId() == $id}
			<DIV class="subcategory linkActiveColor font13 subcategory_select" onclick="requestPage('/categories/{$oCat->getFilteredName()}-discount-coupons', {$oCat->getId()}, 1);">
			{else}
			<DIV class="subcategory linkActiveColor font13" onclick="requestPage('/categories/{$oCat->getFilteredName()}-discount-coupons', {$oCat->getId()}, 1);">
			{/if}
				{section name=loop2 loop=$oCat->getLevel() * 2} 
					&nbsp;
				{/section}
				
				{$oCat->getName()}
			</div>
			
			{if $DEBUG}
			{foreach item=oCat3 from=$oCat->getSubCategories()}
				{if $oCat3->getId() == $id}
				<div class="subcategory bgMenuColor">
				{else}
				<div class="subcategory">
				{/if}	
					{section name=loop3 loop=$oCat3->getLevel() * 3} 
						&nbsp;
					{/section}
					<a href="javascript:void(0);"  onclick="requestPage('/categories/{$oCat3->getFilteredName()}-discount-coupons', {$oCat3->getId()}, 1);">
						<font style="font-size:14px;">{$oCat3->getName()}</font>
					</a>
				</div>
			{/foreach}
			{/if}
		{/foreach}
	{/foreach}
</div>

	
